/**
 *
 */
const arr = [1, 2, 3, 4, 5, 6, "ck", { name: 'ck', age: 20}]
function findIndex() {
    arr.findIndex((item,index,obj ) => {

        if(typeof item === 'object' && item.hasOwnProperty('name') ) {
            console.log(item['age'])
        }
    })
}

findIndex()

 module.exports = {
   name: "findIndex",
 };
